﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

///Enums.cs
///Author   : 黄乙冬
///Date     : 2011-09-01
namespace ajayumi.develop.win32.Transport.AppUpgrade
{
    /// <summary>
    /// 向导按钮
    /// </summary>
    [Flags]
    public enum WizardFormButtons
    {
        /// <summary>
        /// 未知
        /// </summary>
        None = 0,
        /// <summary>
        /// 后退
        /// </summary>
        Back = 1,
        /// <summary>
        /// 前进
        /// </summary>
        Next = 2,
        /// <summary>
        /// 取消
        /// </summary>
        Cancel = 4,
        /// <summary>
        /// 结束
        /// </summary>
        Finish = 8,
        /// <summary>
        /// 退出
        /// </summary>
        Exit = 16,
        /// <summary>
        /// 升级
        /// </summary>
        Upgrade = 32,
        /// <summary>
        /// 还原
        /// </summary>
        Restore = 64
    }

    /// <summary>
    /// UpgradeAction.cs 更新动作
    /// Author   : 黄乙冬
    /// Date     : 2011-10-26
    /// </summary>
    public enum AppFileAction
    {
        /// <summary>
        /// 还原文件
        /// </summary>
        RestoreFile,
        /// <summary>
        /// 备份文件
        /// </summary>
        BackupFile,
        /// <summary>
        /// 更新文件
        /// </summary>
        UpdateFile
    }

    /// <summary>
    /// 升级结果类型
    /// </summary>
    public enum UpgradeResultType
    {
        /// <summary>
        /// 失败
        /// </summary>
        Failure,
        /// <summary>
        /// 成功
        /// </summary>
        Success,
        /// <summary>
        /// 取消
        /// </summary>
        Cancel
    }
}
